Fixed bug in pstatus check
Used domain ID instead of domain name