fixed bug in fastmc