Fixed strange error that was reported on the wrong line (159) but occurred in string.find. Might fix #703