Fixed issue with persistence not working.