fixed leak problem