Fixed active line bug when length was zero