Attempt to fix weird maze bug