Fixed C# 5.0 compatibility issue.