Fixed delected intervals bug close #17