Fixed view_data key invalid key bug