Fixed bug in refreshObject caused by incorrectly finding device parameters that no longer exist.