This if statement doesn't seem right.