fixed graphics glitch for replacing gems