fixed problem in levelprovider