Fixed wrong scheme being passed