fixed issues with line numbers