Replace bad declaration with assignment.