fix first click on toggle