Fix endSymbol which wasn't actually being placed in array