Fixed an error msg when get capability failes