Vector division fix

This should address issue #65 and #76 related to vector division problems.