fix bug with swagger resources