fix push pop operation to graphics