casting fix
0.7 release