fixed bug introduced due to last commit