bugfixes at listing querys and getting periods