handlebar loop issue