fixed drawing on wrong layer