fixed quarry glitches, close #1640