fixed wrong reference for a local variable in readelementstatus