Fix crash after saving new step and then adding new line