Fixed bug where mod and div didn't work for shapes on 64bit.