fixed bug introduced in last change