Fixing errors on gem