Fix bug when origin project is empty