Hopefully fixed the frequent wrong values returned