fixed 64bit draw problem