Fixes admin details query