Updated attempted to call nil bugfix