Fix add student function.