Fixed bug in prev commit