Fixed bad if