resource fix bug