correcting check for valid addr, health values