Correcting humidity function.