Why is this getting called when it shouldn't?