attributes might not been set.

Signed-off-by: crynobone <crynobone@gmail.com>