Fix loader bar issue