Corrected wrong condition testing on parameters