Fixed wavefront loader bug with smooth surfaces