Fix: Dereferenced pointer usage, possible access violation.

This fixes issue #700