Progress bar fix for custom