nested resources links bugfix