Fix bug with details being cleared.