fix update_all/delete_all issue with default scope joins