fixes collapse/expand