I can't figure out why the last condition is not met.