core: fix method redecompilation (issue #6)