Fixed bug in directive failing to set speed properly.