Fixes for error handling of relate field