Make sure progress bar appears at the right place