fixed bug causing -l to stop working