fixed #315