error notices fixed