This is a bug, speed should set $speed not $type.