Fixed the bug with the gray markers not being appended properly.