fixed for {} bug