Fixed critical error