Government must find solution for open-ended sentences