Fixed the object reference issue by solving input value population another way.