Fixed intersection bug