resolve error for empty button