fix 404 on exists function