Fixed problem with 64bit architecture