corrected fork detection