Make length positive
Fixing timeevolution code