fixing bug with z index on basic shader