Memorly leak problem solved