Make sure attrs are filled before using them