ModularProfileModel now works

An error was causing it to incorrectly terminate a fork. This is fixed.