Maybe KitKat doesn't like the if statements