fix bar resize not working