pullrequest: fixed #365