fix bug with empty markers