fixed #313