Fix a bug of lnum emulation