Bugfix, tagline might get '-1' in the last assignment

I have expierenced the error caused by this problem several times, this is a fix.