Fixed wrong use of opts