set gem versions and minor fix