Improve activebufline finding