Fixed a fatal error