Fixed linear functions, must also apply the fix on host side