Corrected lua_type problem.