crash when no columns selected fixed