Fix a bug in -l