fixed a bug - draw wasn't displayed correctly