Fixed #5850 (Wrong Message on self assignment)