fix object loading