fixes application structure