Fixed tolua error with static initialization