Why the last condition not matching......