Bugfix

Check if unitPlayer is set or return