Pointer fix

Based on feedback from @zabulus (https://github.com/cincuranet/NETProvider/pull/6).