Bugfix

This commit fixes a type conversation bug.