Fixed a bug where the extra security check in fetchData may not work