fixed warning when no parent found for a commit