fixed bug caused by me