Fix markers not added bug