fix out of bounds connect drawing