fixed error for view_date param error