fix attribute isssue