Fix add resource button if not resource