fixed error create elements if did not set button