Edit duration and fixed Challenge creation

Believe it you can now
open the challenge creation and it doesn't
break when you save a new
one