fix for critical error