fixed null pointer on hard mode