fix bug resource