Fix setting of ls flags