fix interval
#2 fixed: end and begin are fine now :3