I unloaded all my scripts and tried. Seems to work fine now. Probably one of my scripts affecting it, even if $isalias(timer) = $false.

Anyway, thanks.