fixing bug introduced in 2.7