quick fix for invalid command queue errors by just running algorithm one more time