small fix for conversion functions