deadlock causing bug fixed. mark gp along with parent