fixed the pal quit problem