fixed bug that coused detected lines to disappear after some time