Fix half pixel bug.