fixed bug in pointer size detection