fixed it, but not sure why the fix works