Fix for direct control.

It wasn't working properly on Linux.