Fix critical error, local environment