Fixed bug in redundant assignment issue.