fixed compiler errors from type chanching in Maze