Fixed issue of bar being stuck as a wrong size