Fixed settings, memory cleans properly now