Last value bug