fixed nullpoitnerexp
tried fixing flip