fixed statement errors not displaying