Bugfix - bad argument to string find