fix call and cast type error
Merge branch 'master' of https://github.com/erlang-china/rabbit_farms