memleak
frame rate fix