Fixed JS error with Circular set to false