Fixed code in preview (isset added), fixed error with tca function