fix to prevent vartrees from being checked for derivative methods