added extra persist() to save changes made in Application.postPersist(), fixes #104