Fix layers display issue