Fixed the multiple layers issue