Fix crash issue
Prepare 0.5.1 release