fix bug in cd+ls macro