Fixed issue where the userid for the command wasn't being set for PM command