Removed legacy.lua and moved it's lines to init.lua to fix an issue with freeminer.