Fix issue due to selectbox detach not working