Fix register memcheck to respect offset.