fixed bug introduced with last commit