core: Fix possible bug when setting function attrs
core: Fix possible bug when setting function attrs

philipdexter/rain,scizzorz/rain,scizzorz/rain,scizzorz/rain,philipdexter/rain,philipdexter/rain,philipdexter/rain,scizzorz/rain