fix the issue when last button is selected