Fix motor libraries