fixed call to is_numeric()