fix conversion to credits