Removed out of placed 'end if' statement