fixed convert (issue #10)