fixed entity removing from drawlayers
fixed behavior and syntax