BUG: Temporary fix for the occasional nlopt error about invalid arguments.