fix bug in config/environment, fix bug in calc_credit_points