Fixed view runtime error.