maze bug fixed