Bug fix. Thanks kylewhenderson for the spot..