fixed bug in prev commit