fix bug with img