bug fixed for lib.isEqual