New shader api fix