Remove unwanted semicolon