fixing marker code as a result of a forum suggestion.