fixed issue with the dist build