Remove duplicated 'open' from command