bugfix: if value is null, then return null imediatly without conversion