Fix filename function error. Not a class