fix end

Also report an error with LEFT