fixed a fatal error