Fix allocation fail

I've encountered problem that this plugin doesn't work on Windows 64bit.
This made plugin work well to me.