fixing the gem