Small typo
Added debugging. But I think I know where to look (set_caps)