fixed sever smaller issues in chemical score training