Fixes depth issue on some browsers