fixed issue causing segfault on ARM systems