fixed expected return type could be null or false
fixed possible wrong type in chain
fixed possible wrong type