Fix trailing . causing error