fix mid button and struct