Fix issue https://github.com/aspnet/Mvc/issues/1202