fixed bug created in last commit