fix broken shgetc limiter logic (wasn't working)