correct minor compatibility build issues
correct mistake in overlay stuff incorrect paragraph len calculation