Fix an issue when no attrs are defined