Fixed aliasing bug when testing