Fix mac os x related bug
Release version 0.5.1e