fix bug in prev commit