fixed problems caused by tabs