Fixed a bug when on live site with mysqli::close