fixed a problem in the scalar code (deleted a semicolon)