Update main.xml

make it more compatible