Fix use of $arranged_releases variable