Fixed a bug with repository includes and dependencies