Fixed small conversion bug