fixed overflow issue on x axis