Fixed bug crash on 64bit