Fixed mistake in else condition