Fix ReadOnlyMode issue at app startup