fixed bug that made the gem unusable