Fixed a problem where c might not be a valid player