fix an error in create_program