Fixed alignment issue on 64bit systems. Thanks to shetland_breeder