Fixes display of markers when upside down