maybe @scjs found the bug I was having