error checking for master api register service bug.