Yep, that was the problem, works fine now. Thanks Wonderland for the advice.