fixed interval bug and fixed long run