bug fix for main handlebar 500 error