Fixed bad paste before end of if statement