Need to NULL check for parent() in parentSurface()