bug with parent and dispose()