fix bug one layer only