fix draw compilation errors