fixed the problem with object errors