Maze fix for jre6