fixing bug introduced in 6a6f481