fixing bug introduced by previous change