Smashed the gem error
Removed duplicate code