fixed error with Function select