bugfix director draws layer twice