Fixed bug in markers directives with marker groups.