fix active objects processing order