Fixed crash caused by endless recursion in redundant assignments check