fix space_authorized_resources db undefined error