Fix render first and last click when show dots