fixed error. It was reading non existing memory, but from some reason did not matter