Fixed reinitialization after freeing params