fix:unable to switch the main backgroud in the second time
resize