Fixed a critical error