bugfix for rainbow 1.99  #54