fixed the issue where source layer sometime displayed in wrong location (PDEV-309)