no more memory leak when drawing curtain