Better script loading, fix current menu bug.