fix guard authorization check