Fixed bug in the prev commit