Fix possible Divide by 0 errors
Fixed content path not being set correctly after editing