fixed attr value handling if function