Removed global variable leak (thanks travis ci)