fixing maze element updates