Fixed issue with elements being in the background