fixed #305