fix spelling mistake in tie function