Fixed problem with level definition.