staffQueryIn bugfix