Small syntax fixes for computeLon function