Fixed small bug.
Now works with fork.