Fix error run in FreeBSD