Fixed NoneType error on interval constructor