Fixing credit generation

Invalid argument given to generate_credits.gen_credits()