fixed order of some drawing operations to be related to correct screen