Fix critical error