fix nil values in play script