restruct, a null point bug