fixed conversion error, fix #1439