fixed wrong if statement