add misiing var in admin and fix 2nd argument in main