hack to fix off by one pixel error