fixed cast5 managed.

fixes #8