Fixed an attribute storing bug