fix bug on save connection on mining cube