Fixed cross-platform draw order issue