Fixed a fatal errors