fixed bug error