fixed wrong elif case