fixed client random layers bug