fixed an error in a function
fixed an error in a function