Fixed an small Bug

Due to this Bug, the rendering order was wrong.
e.g
Before the Fix: http://i.imgur.com/FlzHifW.png
After the Fix: http://i.imgur.com/buUHU7T.png