Fixed error redirection to /dev/null