Fix multiple conditional

Add parentheses, and change 'and' to '&&'.