Cleaning up old theme reference for errors