Fixed bug in StartOf() method.