fixed Memoryleak