fix cast bugs
Release 0.0.2