I don't know why we need to set to false this variable two times in two different places