fix background by get height and width