Fixed delegate

Anonymous delegate didn't take parameter.