approval parentId bug fix