Ensure compatibilty with go1.2