Removed unwanted ; at if statement