lnum bugfixing