Objects not take proper attributes