Fixing problme passing null parent