Fixed durations for repulsion and attraction fields

Fixes issue #342.