fixed bug introduced by previous commit