Corrected a bug in the absence function