fix rendering operations order