fixed freezing of needs (closes#1545)