fix warning reg. unused but set variable

introduced in 9d21431c