fixed grid transparency

Fixed rendering grid. Transparent object must be rendered at the end. Otherwise transparency does not work.