fixed drawing order bug