Fixing marker window bug