fix hardmode module issue