Resolved a bug when retrieving levels (null element)