Fixed bug in which empty group lists kill the application