fix critical error