fix bug in timer creation
more guarding against invalid timer creation