Fixed the redirections to /dev/null