Fixed wierd behavior when typing "."

Other than when calling object methods typing "." had undesirable
behavior.