fixed a bug caused by tabs