fixing mistake in bash script