fix bug introduced by prev. commit