fixed lflags (no longer removing the last character of it)

Broken in commit ceede365ba26a96309987c22d5a3968f6733814d