Fixed ending of if