fixing overlay order