fix for bugfix. replace $ w/ len of line