Fixes a critical error