Fixed required attribute error