conversion bug, fixes #1