gold higher after two losing sessions