Fixed multiple error notices