Inconsistent else placement