Fix failure for setting attribute on 64bit environment