fixed config and broken template