- Fixed an indexing bug in calculateTBN()