fixed overflow x bug