Fix bug doesnt have effect on the first time