Bug solved with map pointer.