Fix raising exception on invalid assignment from sequence