Fixes an assignment error.