Properties of Groebner Bases under specializations