fix rendering offsets/scaling