Change the order of vars declaration, try to fix #60