Fixed the getDotNotation method.