fix assignment cache checking bug