fixed bug introduced in last commit