bug fix: needed validObject in initialize