removed some weird crash when freeing to early