fixed result bug