fixed bug for older zshs