core: fix method inline
core: fix 'break' detection in loop