Fixed a problem with a returned function