Fixed resources 404 error when not exists