fixed an issue with using the wrong kind of thing